﻿using System;
using System.Collections.Generic;
using System.IO;

namespace ProjectEuler.Extensions
{
    internal static class TextReaderExtensions
    {
        public static IEnumerable<String> ReadAllLines(this TextReader reader)
        {
            String line = null;

            while ((line = reader.ReadLine()) != null)
            {
                yield return line;
            }
        }
    }
}
